<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="sendMessList" title="信息推送"
			actionUrl="sendMessController.do?datagrid" idField="id" fit="true">
			<t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
			<t:dgCol title="内容" field="nr" width="300"></t:dgCol>
			<t:dgCol title="邮件发送" field="yjfs" width="80" dictionary="status"></t:dgCol>
			<t:dgCol title="短信发送" field="dxfs" width="80" dictionary="status"></t:dgCol>
			<t:dgCol title="创建时间" field="cjsj" formatter="yyyy-MM-dd hh:mm" width="120"></t:dgCol>
			<t:dgCol title="状态" field="zt" width="80" replace="未发送_1,已发送_2"></t:dgCol>
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgDelOpt title="发送" url="sendMessController.do?send&id={id}" exp="zt#eq#1"/>
			<t:dgFunOpt funname="sendEnter(id)" title="推送单位" ></t:dgFunOpt>
			<t:dgDelOpt title="删除" url="sendMessController.do?del&id={id}" />
			<t:dgToolBar title="录入" icon="icon-add"
				url="sendMessController.do?addorupdate" funname="add"></t:dgToolBar>
			<t:dgToolBar title="编辑" icon="icon-edit"
				url="sendMessController.do?addorupdate" funname="update"></t:dgToolBar>
			<t:dgToolBar title="查看" icon="icon-search"
				url="sendMessController.do?addorupdate" funname="detail"></t:dgToolBar>
		</t:datagrid>
	</div>

</div>

<script>

	function sendEnter(xxid){
		var title = "推送单位";	
		var url = "sendMessEnterController.do?toAssignEnter&xxid="+xxid;			
		$.dialog({
			content: 'url:'+url,
			title : title,
			cache:false,
			lock : true,
			width: 800,
		    height: 500,
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/
		});
	}
</script>